package com.cenarius.game.mongo;

import java.net.UnknownHostException;

import com.mongodb.DB;
import com.mongodb.Mongo;
import com.mongodb.MongoException;

public class Dbs {

	public static DB getDB(String db){
		Mongo m;
		try {
			m = new Mongo();
		} catch (UnknownHostException e) {
			throw new RuntimeException(e);
		} catch (MongoException e) {
			throw new RuntimeException(e);
		}
		DB database = m.getDB(db);
		return database;
	}
}
